package com.glacier.cloud.cart.dao;

import com.glacier.cloud.cart.entity.dataobject.CartItemDo;
import com.glacier.cloud.cart.entity.dto.cmd.CartRemoveCmd;

import java.util.List;

/**
 * date 2023-12-27 21:45
 *
 * @author glacier
 * @version 1.0
 */
public interface CartItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CartItemDo record);

    CartItemDo selectByPrimaryKey(Long id);

    List<CartItemDo> selectList(CartItemDo record);

    int updateByPrimaryKey(CartItemDo record);

    int deleteByUserIdAndProductIds(CartRemoveCmd cartItemCmd);
}
